package com.itheima.demo02;

import java.io.FileInputStream;
import java.io.IOException;

public class IOClass02 {
    public static void main(String[] args) {
        FileInputStream fis = null;
        try {
            fis = new FileInputStream("day11\\a.txt");
            /*int re = fis.read();
            System.out.println((char) re);*/
            int re;
            while ((re = fis.read()) != -1) {
                System.out.println((char)re);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            try {
                fis.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
